package com.kedou.sdk.params;

import android.os.Parcel;
import android.os.Parcelable;

import com.kedou.sdk.params.bean.PlatCoinDetal;

import java.util.List;

/**
 * Created by Administrator on 2017/6/9 0009.
 */

public class PlatFormCoinDetailResponseParams extends ResponseParams<PlatFormCoinDetailResponseParams.CreateOrderResponseData> {

    public static class CreateOrderResponseData implements Parcelable {


        private List<PlatCoinDetal> list;

        public List<PlatCoinDetal> getList() {
            return list;
        }

        public void setList(List<PlatCoinDetal> list) {
            this.list = list;
        }

        public CreateOrderResponseData() {
        }

        protected CreateOrderResponseData(Parcel in) {

            list = in.createTypedArrayList(PlatCoinDetal.CREATOR);


        }

        public static final Creator<CreateOrderResponseData> CREATOR = new Creator<CreateOrderResponseData>() {
            @Override
            public CreateOrderResponseData createFromParcel(Parcel in) {
                return new CreateOrderResponseData(in);
            }

            @Override
            public CreateOrderResponseData[] newArray(int size) {
                return new CreateOrderResponseData[size];
            }
        };


        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeTypedList(this.list);


        }
    }

}
